﻿using System;

namespace Dabr.NET
{
    public partial class DabrPage : System.Web.UI.Page
    {
        /// <summary>
        /// Initializes the user authentication system of the page.
        /// All authentication-related methods MUST be done after this.
        /// </summary>
        protected void InitializeAuthentication()
        {
            RegisterMenu("oauth", new MenuItem(OAuth, false, true));
            RegisterMenu("login", new MenuItem(Login, false, true));
        }

        protected void OAuth()
        {
            // require_once 'OAuth.php'; -> Splitted into codes in OAuth/
            throw new NotImplementedException();
        }

        protected void Login()
        {
            throw new NotImplementedException();
        }

        protected bool IsAuthenticated
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        protected string CurrentUsername
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        protected void EnsureAuthenticated()
        {
            throw new NotImplementedException();
        }
    }
}